/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package mspbots.tsheets.business.core.sysuser;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统用户
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Table("sys_user")
public class SysUser implements Serializable {
    public final static String REG_UPDATE_SOURCE_TEAMS = "1";
    public final static String REG_UPDATE_SOURCE_TENANT = "2";
    public final static String REG_UPDATE_SOURCE_API = "3";
    private static final long serialVersionUID = 1L;
    @Id
    protected Long id;
    private Long tenantCode;
    private String username;
    private String password;
    private String realName;
    private String headUrl;
    private Integer gender;
    private String email;
    private String mobile;
    private Long deptId;
    private Integer superAdmin;
    private Integer superTenant;
    private Integer status;
    private Long updater;
    private LocalDateTime updateDate;
    private String firstName;
    private String lastName;
    private Long managerId;
    private String timezoneId;
    private String timezoneName;
    private String timezoneOffset;
    private String regSource;
    private String updateSource;

}
